package com.twu;

public class NYPizzaFactory extends PizzaFactory {

    public Pizza createPizza(String typeOfPizza) {

        if (typeOfPizza.equals("Cheese")) {
            return new NYCheesePizza();
        } else if (typeOfPizza.equals("Chicken")) {
            return new NYChickenPizza();
        } else if (typeOfPizza.equals("Garlic")) {
            return new NYGarlicPizza();
        }
        return null;
    }
}
